package system;

import java.io.Serializable;
/**
 * Container class for storing the result of the mapping function
 * defined by the Task interface
 * 
 * @author Mayuri Karra, Bing Wei
 *
 */
public class MapperResult implements Serializable{
	private static final long serialVersionUID = 1L;
	Object key2;  /* key in <key, value> pair */
	Object value2; /* value in <key, value> pair */
	
	/**
	 * Constructor
	 * @param key2
	 * @param value2
	 */
	public MapperResult(Object key2, Object value2) {
		super();
		this.key2 = key2;
		this.value2 = value2;
	}
	
	/**
	 * getter function for the key
	 * @return the String version of the key
	 */
	public String getKey(){
		return key2.toString();
	}
	
	/**
	 * getter function for the value
	 * @return the String version of the Value
	 */
	
	public String getValue(){
		return value2.toString();
	}
}
